/*
 * @Author: your name
 * @Date: 2021-01-29 15:08:34
 * @LastEditTime: 2021-02-03 15:40:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wechat-node\routes\index.js
 */
const router = require('koa-router')();


const loginRouter = require('./login');
const authRouter = require('./auth');
const commonRouter = require('./common');

router.use('', commonRouter.routes(), commonRouter.allowedMethods());
router.use('', loginRouter.routes(), loginRouter.allowedMethods()); // 登录注册 相关的接口
router.use('', authRouter.routes(), authRouter.allowedMethods());  // 其他所有接口

module.exports = router;
